package com.ruoyi.project.mahjong.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 桌号对象 t_tablenumber
 *
 * @author ruoyi
 * @date 2023-07-18
 */
@ApiModel("桌号实体类字段描述")
public class TTablenumber extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String status;

    private String sn;

    private String lo;

    /** 桌号id */
    @Excel(name = "桌号id")
    @ApiModelProperty(value = "桌号id")
    private String tablenumberId;
    @ApiModelProperty(value = "是否通电：1通电 2未通电")
    private String isEnergize;
//    归属店铺id
    @ApiModelProperty(value = "归属店铺id")
    private String belong;
//   桌号归属房间id
    @ApiModelProperty(value = "桌号归属房间id")
        private String roomType;
    //   桌子开桌信息
    @ApiModelProperty(value = "桌子开桌信息")
    private TOpenTable tOpenTable;

    private String roomName;

    private String shopName;


    private String orderSn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

    private Integer xh;

    public TOpenTable gettOpenTable() {
        return tOpenTable;
    }

    public void settOpenTable(TOpenTable tOpenTable) {
        this.tOpenTable = tOpenTable;
    }

    public String getBelong() {
        return belong;
    }

    public void setBelong(String belong) {
        this.belong = belong;
    }

    /** $column.columnComment */
    private Long id;

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getIsEnergize() {
        return isEnergize;
    }

    public void setIsEnergize(String isEnergize) {
        this.isEnergize = isEnergize;
    }

    public String getStatus()
    {
        return status;
    }
    public void setTablenumberId(String tablenumberId)
    {
        this.tablenumberId = tablenumberId;
    }

    public String getTablenumberId()
    {
        return tablenumberId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("status", getStatus())
            .append("tablenumberId", getTablenumberId())
            .append("belong", getBelong())
            .append("roomType", getRoomType())
            .append("tOpenTable", gettOpenTable())
            .append("id", getId())
            .toString();
    }


    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getLo() {
        return lo;
    }

    public void setLo(String lo) {
        this.lo = lo;
    }

    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }
}
